
INSTRUCTIONS FOR QUIZES

------------------


quiz1.htm is the all questions on one page page
quiz2.htm is one questions displayed at a time


------------------


To insert the quizes into other pages you need to cut and paste:

 - all the HTML between the <BODY> tags
 - all the script between the <SCRIPT> tags
 - and the <STYLE> in the <HEAD>

As long as these sections remain intact, the quiz should work.


------------------


 To change the questions:

 1. Each question is in it's own <DIV>, named QuestionX. The question text is in a <P> within this.

 2. The answers are just below the question text, next to radio buttons with values 1 to 4. Remember which radio button value
	is the correct one.

 3. The next <DIV> below this is called 'QuestionXCorrectMessage'. This is the message that will be displayed when a user 
	gets the question right.

 4. The next <DIV> is called 'QuestionXCorrect'. This is displayed whenever a user gets a question wrong. 
	It explains the correct answer.

5. The next three <DIV>s are displayed to explain why a user got a question wrong. So for instance if a user selected the second 
	answer, which was wrong, the <DIV> called 'QuestionXWrong2' will be displayed. If they selected the fourth answer 
	'QuestionXWrong4' would be displayed and so on. Therefore there should be three DIVs like this - there does not need to be 
	one for the correct answer.

6. Now to tell the script which are the correct answers. Look for a line in the JavaScript similar to:

		correctAnswers = new Array(2, 3, 1, 2, 1, 3, 2, 3, 2, 4);

	The numbers correspond to the radio button that matches the correct answer.

7. To change the images used for ticks and crosses in the answers, edit the following lines in the JavaScript:

	yesImage.src = "images/1.gif";
	noImage.src = "images/0.gif";


------------------

Netscape 4 specific versions

quiz1 and quiz2 should work on version 4+ browsers but if the page detects Netscape 4 it will redirect itself to the NS4 page 
(quizX_ns4.htm). The two versions need to be in the same directory for this to work.

The HTML for the individual question DIVs is the same in the NS4 and non-NS4 versions EXCEPT quiz1_ns4.htm where 
there are no tables within the question DIVs. To convert it just remove any <TABLE>,<TR> and <TD> tags. 

Also it is only the question <DIV>s that can be easily transferred between NS4 and non-NS4. 
The other <DIV>s on the page are specific to each version.

The stylesheets and JavaScript are also different between NS4 and non-NS4 versions.